package com.atguigu.stgy.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Schema(description = "搜索房间条件模型")
public class RoomInfoSearchDTO {
    //要联查  room_info aparment_info  graph_info  lable_info
    //传入的条件： 省市区id  aparment_info ，支付方式id aparment_info (room_payment_type) , 价格区间 room_info
    // 一个room对应一个aparment ， 一个
    //provinceId  cityId districtId  current  size  paymentTypeId  minRent maxRent   orderType=asc 升序，desc 降序
    @Schema(description = "省id")
    private Long provinceId;
    @Schema(description = "市id")
    private Long cityId;
    @Schema(description = "区id")
    private Long districtId;
    @Schema(description = "支付方式id")
    private Long paymentTypeId;
    @Schema(description = "页码")
    private Integer  current;
    @Schema(description = "每页记录数")
    private Integer size;

    @Schema(description = "最低价格")
    private BigDecimal minRent;
    @Schema(description = "最高价格")
    private BigDecimal maxRent;

    @Schema(description = "排序方式：asc升序  desc降序")
    private String orderType;

}
